@extends('Admin.layout.layout')
@section('title','修改板块')
@section('home','板块管理')
@section('weizhi','修改板块')
@section('con')

                          <div class="panel-body">
                      @if(session('success')) 
                      <div class="row">
                          <div class="alert alert-success fade in">
                                                   {{session('success')}}
                          </div>

                      @endif      

                                        <!--错误-->
                      @if(session('error'))
                         <div class="alert alert-block alert-danger fade in">
                            <button type="button" class="close close-sm" data-dismiss="alert">
                                <i class="icon-remove"></i>
                            </button>
                            <strong>{{session('error')}}</strong> 
                        </div>
                      @endif
                                  <form action="{{url('/admin/posttype/doupdate')}}" method="post" id="feedback_form" class="form-validate form-horizontal" novalidate="novalidate">
                                  <input type="hidden" name="id" value="{{$update->id}})">
                                      <div class="form-group ">
                                          <label class="control-label col-lg-2" for="cname">修改板块名 <span class="required">*</span></label>
                                          <div class="col-lg-4" >
                                              <input type="text"  required="" minlength="5" name="name" id="cname" class="form-control" value="{{$update->name}}">
                                          </div>
                                      </div>
                                      <div class="form-group ">
                                          <label class="control-label col-lg-2" for="cemail">修改板块描述 <span class="required">*</span></label>
                                          <div class="col-lg-4">
                                              <input type="email" required="" name="content" id="cemail" class="form-control" value="{{$update->content}}">
                                          </div>
                                      </div>
                               
                                      {{csrf_field()}}
                                      <div class="form-group">
                                          <div class="col-lg-offset-2 col-lg-10">
                                              <button type="submit" class="btn btn-primary">保存</button>
                                              <button type="button" class="btn btn-default">取消</button>
                                          </div>
                                      </div>
                                  </form>
                              </div>

                          
@endsection